package com.huangsm.book.designmodel;

/**
 * @author huang
 * @PACKAGE_NAME com.huangsm.book.designmodel
 * @PROJECT_NAME concurrence
 * @date 2019/2/15
 */
public class StaticSinglton {
    private StaticSinglton(){
        System.out.println("StaticSingleton is created");
    }
    private static  class SingletonHolder{
        private static StaticSinglton instance=new StaticSinglton();
    }
    public static StaticSinglton getInstance(){
        return SingletonHolder.instance;
    }
}
